using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Thaire.Investment.Domains.Transaction
{
   
    public class FixIncomeSecuritiesTransaction 
    {
        #region Properties
              // TRANSACTION_ID
        public virtual int TransactionID { set; get; }
      // FIXINCOMESECURITIES_HEADER_ID
        public virtual int FixincomesecuritiesHeaderID { set; get; }
      // PURCHASE_ID
        public virtual int PurchaseID { set; get; }
      // TRANSACTION_TYPE
        public virtual String TransactionType { set; get; }
      // UNIT
        public virtual int? Unit { set; get; }
      // YIELD
        public virtual decimal? Yield { set; get; }
      // COUNTERPARTY_NAME
        public virtual String CounterpartyName { set; get; }
      // COUNTERPARTY_ID
        public virtual int? CounterpartyID { set; get; }
      // CLEANPRICE
        public virtual decimal? Cleanprice { set; get; }
      // TYPEOFPAYMENT_NAME
        public virtual String TypeofpaymentName { set; get; }
      // TYPEOFPAYMENT_ID
        public virtual int? TypeofpaymentID { set; get; }
      // AI
        public virtual decimal? AI { set; get; }
      // REF_NO
        public virtual String RefNO { set; get; }
      // GROSS_PRICE
        public virtual decimal? GrossPrice { set; get; }
        public virtual String CreateUserId { set; get; }
        // CREATE_TS
        public virtual DateTime? CreateTs { set; get; }
        public virtual DateTime? TradeDate { get; set; }

        public virtual DateTime? SettlementDate { get; set; }

        public virtual DateTime? GuaranteeStartDate { set; get; }
        public virtual DateTime? GuaranteeEndDate { set; get; }
        public virtual String Obligation { set; get; }
        public virtual String ObligationNO { set; get; }
        public virtual String GuaranteeType { set; get; }
        public virtual String Physical { set; get; }
        // KEEP_AT
        public virtual String KeepAt { set; get; }
        public virtual int? BookCount { set; get; }
        public virtual String BookNo { set; get; }
        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(FixIncomeSecuritiesTransaction) && !(obj is FixIncomeSecuritiesTransaction))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",TransactionID);
        }


      
    }

   

}